package com.tbit.uqbike.webmanager.dao.core;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tbit.uqbike.object.pojo.StockMachine;
import com.tbit.uqbike.object.pojo.vo.StockMachineVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author yee_
 * @version 1.0
 * @date 2023/2/20 13:36
 */
@Mapper
public interface StockMachineMapper extends BaseMapper<StockMachine> {

    /**
     * 分页查询数据
     *
     * @param objMap 。
     * @return 。
     */
    List<StockMachineVO> pageList(Map<String, Object> objMap);

    /**
     * 分页总条数
     *
     * @param objMap 。
     * @return 。
     */
    Integer pageCount(Map<String, Object> objMap);

    List<StockMachineVO> selectByWarehouseIdS(Map<String, Object> map);

    List<StockMachineVO> selectByMachineIdS(Map<String, Object> map);

    List<Integer> getNoWarehouseId(Map<String, Object> map);

    void deleteByMachineId(@Param("machineId") Integer machineId );

    List<StockMachineVO> selectByWarehouseId(Map<String, Object> map);

    /**
     * @description: 根据车辆Id获取已经入库的车辆Id
     * @author: mo.shanyong
     * @date: 2025/3/31 20:09
     * @param: machineIdList
     * @return: java.util.List<java.lang.Integer>
     */
    List<Integer> getStockMachineIdByMachineIds(@Param("machineIdList") List<Integer> machineIdList);


    List<Integer> getByRegionId(@Param("regionIds") List<Integer> regionIds);
}
